export const lineSetOption = (cities: string[], data:number[]) => {
  return {
    backgroundColor: 'rgba(34, 54, 81,.5)',
    tooltip: {
      trigger:"axis"
    },
    xAxis: {
      type: 'category',
      data: cities,
      axisLine: {
        lineStyle: {
          color:'#fff'
        }   
      }
    },
    yAxis: {
      type: 'value',
      axisLine: {
        lineStyle: {
          color:'#fff'
        }
      }
    },
    label: {
      show:true
    },
    series: [
      {
        data: data,
        type: 'line',
        smooth: true
      },
    ],
  }
}
